package com.xin.minibusmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xin.common.utils.PageUtils;
import com.xin.minibusmall.product.entity.AttrEntity;
import com.xin.minibusmall.product.vo.AttrRespVo;
import com.xin.minibusmall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author fbb
 * @email 1339279838@qq.com
 * @date 2020-08-23 17:35:29
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, String attrType, Long catelogId);


    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attrVo);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Long attrgroupId, Map<String, Object> params);

    void removeAttrs(List<Long> asList);

    //在指定的所有属性集合里面，跳出检索属性
    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

